<%--
  Created by IntelliJ IDEA.
  User: lzy
  Date: 18-9-3
  Time: 下午1:36
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>jquery</title>
    <script src="http://libs.baidu.com/jquery/1.7.2/jquery.js"></script>
    <script type="text/javascript">
        $(function () {
            $("a").click(function () {
                //使用load方法处理Ajax
                var url = this.href;
                var args = {"time": new Date()};
                $("#content").load(url, args);
                return false;
            })
        })
    </script>
</head>
<body>
<h4>Welcome to ajax</h4>
<a href="helloAjax.ini">hello ajax</a>
<div id="content"></div>
</body>
</html>
